﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Foo.Contract;
using System.Diagnostics;

namespace Foo.Logic
{
    public class FooManager:IFooManager
    {
        public void Simple()
        {
            Trace.WriteLine("Simple Logic");
        }

        public int Basic(int i)
        {
            return i;
        }

        public Bar Complex(Bar b, int i)
        {
            b.i = i;
            return b;
        }

        public int Error()
        {
            throw new NotImplementedException();
        }

        public void Wait(int i)
        {
            Trace.WriteLine("Sleep Start");
            System.Threading.Thread.Sleep(i * 1000);
            Trace.WriteLine("Sleep End");
        }
    }
}
